package com.ryskoo.common.dto.permission;

import com.ryskoo.common.dto.BasicDTO;

import java.util.ArrayList;
import java.util.List;

/**
 * 菜单DTO
 *
 * @author thq
 */
public class MenuDTO extends BasicDTO{

    private static final long serialVersionUID = 6257846909675810699L;

    /* 菜单名称*/
    private String name;

    /* 菜单所属类型  0代表平台菜单 1代表商户菜单  默认是平台菜单 */
    private int type;

    /* 菜单链接 */
    private String url;

    /* 菜单图标 */
    private String icon;

    /* 显示顺序 */
    private int position;

    /* 父菜单编号*/
    private String parentId;

    /* 启用状态  1为启动  2为未启动  默认1 */
    private boolean state;

    /* 子菜单集合 */
    private List<MenuDTO> childrens = new ArrayList<MenuDTO>();

    /* 一级菜单对应的权限列表 */
    private List<PermissionDTO> permissionList;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }


    public boolean isState() {
		return state;
	}

	public void setState(boolean state) {
		this.state = state;
	}

	public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

	public int getPosition() {
		return position;
	}

	public void setPosition(int position) {
		this.position = position;
	}

	public List<MenuDTO> getChildrens() {
        return childrens;
    }

    public void setChildrens(List<MenuDTO> childrens) {
        this.childrens = childrens;
    }

    public List<PermissionDTO> getPermissionList() {
        return permissionList;
    }

    public void setPermissionList(List<PermissionDTO> permissionList) {
        this.permissionList = permissionList;
    }
}
